package tl

import "gitee.com/wcs2/common/enums"

type tlPositionStruct struct {
	ENTRANCE enums.PositionEnum
	EXIT     enums.PositionEnum
	LEFT     enums.PositionEnum
	RIGHT    enums.PositionEnum
	INNER    enums.PositionEnum
}

//输送线位置枚举
var TlPositionEnum = &tlPositionStruct{
	ENTRANCE: enums.PositionStruct{
		Code:    "ENTRANCE",
		Des:     "输送线入口",
		PlcCode: "001",
	},
	EXIT: enums.PositionStruct{
		Code:    "EXIT",
		Des:     "输送线出口",
		PlcCode: "002",
	},
	LEFT: enums.PositionStruct{
		Code:    "LEFT",
		Des:     "提升机左",
		PlcCode: "003",
	},
	RIGHT: enums.PositionStruct{
		Code:    "RIGHT",
		Des:     "提升机右",
		PlcCode: "004",
	},
	INNER: enums.PositionStruct{
		Code:    "INNER",
		Des:     "提升机内",
		PlcCode: "005",
	},
}

var TlPositionEnumMap = map[string]enums.PositionStruct{
	"ENTRANCE": TlPositionEnum.ENTRANCE,
	"EXIT":     TlPositionEnum.EXIT,
	"LEFT":     TlPositionEnum.LEFT,
	"RIGHT":    TlPositionEnum.RIGHT,
	"INNER":    TlPositionEnum.INNER,
}
